package com.groupseven.happycampus.mapper;

import com.groupseven.happycampus.common.pojo.ErrandAddress;
import com.groupseven.happycampus.common.pojo.ErrandOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ErrandMapper {

    int addAddress(ErrandAddress address);

    int deleteAddress(@Param("id") Integer id);

    int updateAddress(ErrandAddress address);

    List<ErrandAddress> selectAddressByParams(Map<String, Object> params);

    int addOrder(ErrandOrder order);

    int deleteOrder(Integer id);

    int updateOrder(ErrandOrder order);

    List<ErrandOrder> selectOrderByParams(Map<String, Object> params);

    int deleteErrandsByIds(String[] arrId);

    List<ErrandOrder> showAddress(String telephone);

}
